#pragma once

#include <QtWidgets/QWidget>
#include <QUdpSocket>
#include "ui_UdpReceiverFileProject.h"

class UdpReceiverFileProject : public QWidget
{
	Q_OBJECT

public:
	UdpReceiverFileProject(QWidget *parent = Q_NULLPTR);
	~UdpReceiverFileProject();

private slots:
	void onStartButtonClicked();
	void onStopButtonClicked();
	void onReadyRead();

private:
	Ui::UdpReceiverFileProjectClass *ui;

	QUdpSocket *udpSocket;
	bool serverRunning;
	void startServer();
	void stopServer();
};
